package com.vision.sales.cm.serv.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.vision.core.cm.exception.RpcException;
import com.vision.core.cm.serv.rpc.AbstractService;
import com.vision.sales.cm.db.data.AppliedAdvancePayment;

@RemoteServiceRelativePath("applied_advance_payment")
public interface AppliedAdvancePaymentService extends AbstractService<AppliedAdvancePayment> {
	
	List<AppliedAdvancePayment> getAppliedAdvancePaymentsForCustomer(long customerId) throws RpcException;
	
	List<AppliedAdvancePayment> getAppliedAdvancePaymentsForAdvancePayment(long advancePaymentId) throws RpcException;

	List<AppliedAdvancePayment> postAppliedAdvancePayments(List<AppliedAdvancePayment> payments) throws RpcException;

	List<AppliedAdvancePayment> delete(List<AppliedAdvancePayment> appliedAdvancePayments) throws RpcException;
	
}
